import request from '@/utils/request'

// 查询收、发货信息列表
export function listYiqiBusiness(query) {
  return request({
    url: '/trace/yiqibusiness/list',
    method: 'get',
    params: query
  })
}

// 查询收、发货信息详细
export function getYiqiBusiness(id) {
  return request({
    url: '/trace/yiqibusiness/' + id,
    method: 'get'
  })
}

// 新增收、发货信息
export function addYiqiBusiness(data) {
  return request({
    url: '/trace/yiqibusiness',
    method: 'post',
    data: data
  })
}

// 修改收、发货信息
export function updateYiqiBusiness(data) {
  return request({
    url: '/trace/yiqibusiness',
    method: 'put',
    data: data
  })
}

// 删除收、发货信息
export function delYiqiBusiness(id) {
  return request({
    url: '/trace/yiqibusiness/' + id,
    method: 'delete'
  })
}
